//
//  PYCProgressViewController.m
//  PinyinContacts
//
//  Created by Xiaoping Zhang on 2/17/10.
//  Copyright 2010 Filters, Inc. All rights reserved.
//

#import "PYCProgressViewController.h"


@implementation PYCProgressViewController

- (id)init
{
	self = [super initWithNibName:@"PYCProgressWindow" bundle:nil];

	return self;
}

- (void)setMaxValue:(double)maxValue
{
	[progressIndicator setMaxValue:maxValue];
}

- (void)setProgress:(double)progressValue
{
	[progressIndicator setDoubleValue:progressValue];
}

- (void)setProgressMessage:(NSString *)message
{
	[progressMessageField setStringValue:message];
}

- (void) closeProgressSheet
{
	[[[self view] window] orderOut:nil];
	[NSApp endSheet:[[self view] window]];
}

@end
